<!DOCTYPE html>
<html>

<head>

    {include file="Public/header"}
    <link href="__STATIC__/layout/css/gyq.css" rel="stylesheet">
    <link rel="stylesheet" href="__STATIC__/layout/css/demo.css" type="text/css">
</head>

<body style="color:#333;padding:3px;">
<!-- 标题 -->
<div class="page-heade">
    <h2 class="title_color text-center">所有经销商核销状况查询</h2>
</div>
<!-- 标题 -->
<div class="row-margin-top">
    <div action="">
        <form action="" method="get" class="form-inline">
        <table class="row-margin-top tab-content table-bordered  table " border="1">
            <tr>
                <td><label for="" class="form-label">经销商编号：</label></td>
                <td><input type="text" class="form-control" name="sn" value="{$sn}"></td>
                <td><label for="" class="form-label">经销商名称：</label></td>
                <td><input type="text" class="form-control" name="title" value="{$title}"></td>
                <td>
                    <button class="btn btn-info query">查询</button>
                    <button class="btn btn-info emptyIf" type="button" id="reset">清空查询条件</button>
                </td>
            </tr>
        </table>
        </form>
        <div class="contact-box font-bold" style="padding: 8px">
            请选择您本次要核销费用的经销商：
        </div>
        <table class="table table-striped row-margin-top table-bordered table-hover text-center bud_hei">
            <tr class="info text-center">
                <td class="text-center" rowspan="2">序号</td>
                <td class="text-center" rowspan="2">经销商编号</td>
                <td class="text-center" rowspan="2" style="min-width: 200px;width: 200px">经销商名称</td>
                <td class="text-center" rowspan="2">已批准</td>
                <td class="text-center" rowspan="2">已核销</td>
                <td class="text-center" colspan="2">未核销</td>
                <td class="text-center" rowspan="2">不予核销</td>
                <td class="text-center" rowspan="2">可核销</td>
                <td class="text-center" rowspan="2">操作</td>
            </tr>
            <tr class="info text-center">
                <td>申请中</td>
                <td>未申请</td>
            </tr>
            {volist name="data" id="row"}
            <tr>
                <td>1</td>
                <td>{$row.sn}</td>
                <td>{$row.title}</td>
                <td class="text-right">{$row.yipizhun}</td>
                <td class="text-right">{$row.yihexiao}</td>
                <td class="text-right">{$row.shenqingzhong}</td>
                <td class="text-right">{$row.weishenqing}</td>
                <td class="text-right">{$row.buyuhexiao}</td>
                <td class="text-right">{$row.kehexiao}</td>
                <td>
                    {if $row.kehexiao>0}
                    <a href="{:url('changejxsafter',['id'=>$row.id])}">选择</a>
                    {/if}
                </td>
            </tr>
            {/volist}
          <tfoot>
              <tr class="trTotal">
                <td colspan="3" class="text-right">合计:</td>
                <td class="text-right">{$sum1}</td>
                <td class="text-right">{$sum2}</td>
                <td class="text-right">{$sum3}</td>
                <td class="text-right">{$sum4}</td>
                <td class="text-right">{$sum5}</td>
                <td class="text-right">{$sum6}</td>
                <td></td>
            </tr>
          </tfoot>
        </table>
    </div>
    <p>注：<br>
        (1)上表金额单位："元"。<br>
        (2)如果手动联想出来的下拉框中没有您要核销的经销商，请立刻联络X部门人员进行数据更新。联系电话：000-00000000.
    </p>
</div>
<!-- 全局js -->
{include file="Public/footer"}
<!-- <script src="js/plugins/metisMenu/jquery.metisMenu.js"></script> -->
<script src="__STATIC__/layout/js/plugins/slimscroll/jquery.slimscroll.min.js"></script>
<!--统计代码，可删除-->
</body>
<script>
    $(function () {
        //清空查询条件
        $('#reset').on('click',function () {
            $(this).closest('form').find('input').each(function (i,o) {
                $(o).val('')
            })
            $(this).closest('form').find('select').each(function (i,o) {
                $(o).val('')
            })
            $(this).closest('form').submit()
        })
    })
</script>
</html>
